import Foundation

class MockUserRepository: UserRepository {
    func login(phoneNumber: String) async throws -> User {
        // 模拟网络延迟
        try await Task.sleep(nanoseconds: 1_000_000_000)
        
        // 模拟登录成功
        return User(id: UUID().uuidString, phoneNumber: phoneNumber)
    }
    
    func verifyTermsAgreement() async throws -> Bool {
        return true
    }
}